package com.joekai.view_demo.heart_like;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.joekai.view_demo.R;

public class HeartLikeActivity extends AppCompatActivity {

    HeartLikeLayout heartLikeLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_heart_like);
        setTitle("心形点赞效果");
        heartLikeLayout = findViewById(R.id.heartLikeLayout);
        heartLikeLayout.setOnTouchListener(new DoubleClickListener(event -> {
            heartLikeLayout.addHeartLike(event,5);
        }));
    }
}